package com.ccm.demo.cloudeurekaclient.controller;

import com.ccm.demo.cloudeurekaclient.entity.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWorldController {

	@RequestMapping("add")
	public Integer add(@RequestParam("a") Integer a){
		return a+10;
	}

	@RequestMapping("getUser")
	public User getUser(@RequestBody User user){
		return user;
	}


}
